package de.koller.eccentricity.render.texture;

import de.koller.aframe.gl.ATexture;
import de.koller.oceanFramework.gl.util.ParticleTexture;
import org.lwjgl.opengl.GL11;

public class Grid extends ATexture implements ATexture.ITextureBuilder {

	@Override
	protected void setUp( TextureParameters tparam ) {
		tparam.size = 32;
		tparam.magFilter = GL11.GL_LINEAR;
		tparam.builder = this;
	}

	@Override
	public void build( ParticleTexture texture ) {
		texture.clear( 0xff000000 );
		
		for( int k = 0; k >= 0; k-- ) {
			for( int i = 0; i < texture.getWidth(); i++ ) {
				texture.setPixel( 0xff252525, i, 0 );
				texture.setPixel( 0xff252525, 0, i );
			}
			
		}
		
	}
	
}
